//
// Created by yym on 2019/11/19.
//
//防止头文件重复包含
#ifndef BMPPARSE_BINARYZATION_H
#define BMPPARSE_BINARYZATION_H

#include <stdio.h>
#include <malloc.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>

#ifdef __cplusplus
extern "C" {
#endif

unsigned char *getData8(int width, int height, unsigned char *data32);

unsigned char *getData1(int width, int height, unsigned char *data8, unsigned char *data32, int nThreshold);

void getHistogram(int width,int height,unsigned char *data8,double *nHistogram);

unsigned char *otsu(int width, int height, unsigned char *data32, int nThreshold);

#ifdef __cplusplus
}
#endif

#endif //BMPPARSE_BINARYZATION_H
